package com.itheima.a05oopextendsdemo5;

public class Test {
    public static void main(String[] args) {
        //创建对象赋值并调用
        Lecturer l = new Lecturer("w01","zhangsan");
        System.out.println(l.getId()+"\t"+l.getName());
        l.work();

        Tutor t = new Tutor();
        t.setId("w02");
        t.setName("lisi");
        System.out.println(t.getId()+"\t"+t.getName());
        t.work();
    }
}
